package org.example.bobofish.user.infrastructure.persistence.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.sql.Timestamp;

@Data
@TableName("user_right_info")
public class UserRightsInfo {

    /**
     * 标识主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private String userId;

    private String orderNumber;

    private Integer rightType;

    private Integer sourceType;

    private String rightNo;

    private Integer status;

    private Timestamp createTime;

    private Timestamp datachangeLastTime;

    /**
     * 逻辑删除字段
     */
    @TableLogic
    private Integer isDeleted;

    /**
     * 标识乐观锁版本号
     */
    @Version
    private Integer version;

}
